package com.ftg.learn.back.pattern.proxy;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author kangjx
 * @createTime 2022/9/5
 */
@Data
@AllArgsConstructor
public class Teacher implements Iteacher {

    private String teaName;

    private String subjectName;

    @Override
    public String say() {
        return this.getTeaName() + "开始授课，讲授课程为" + this.getSubjectName();
    }


}
